<!DOCTYPE html>
<html data-layout-decorator="layout/main">
    <div data-layout-fragment="content">
<form class="layui-form info-form" action="">
    <input name="id" type="hidden" th:value="${data['id']}?:0">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">菜单名称：</label>
            <div class="layui-input-inline">
                <!--<input name="title" id="title"  th:value="${data['title']}!''" lay-verify="required" autocomplete="off" placeholder="请输入菜单名称" class="layui-input" type="text">-->
                <input name="name" th:value="${data['title']}" lay-verify="required" autocomplete="off" placeholder="请输入菜单名称" class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">菜单图标：</label>
            <div class="layui-input-inline">
                <input name="icon" id="icon" th:value="${data['icon']}?:'layui-icon-home'" lay-verify="required" autocomplete="off" placeholder="请输入菜单图标" class="layui-input" type="text" disabled="">

            </div>
            <a href="javascript:" class="layui-btn layui-btn-small btnIcon" id="btnIcon">
                <i class="iconFont larry-icon " th:classappend="${data.icon}"></i> 图标
            </a>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">菜单类型：</label>
            <div class="layui-input-inline">
                <select name="type" id="type" lay-verify="required" lay-search="" lay-filter="type" th:switch="${data['type']}">
                    <option value="">【请选择菜单类型】</option>
                    <option value="1" th:selected="${data['type']}==1">模块</option>
                    <option value="2" th:selected="${data['type']}==2">导航</option>
                    <option value="3" th:selected="${data['type']}==3">菜单</option>
                    <option value="4" th:selected="${data['type']}==4">节点</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">上级菜单：</label>
            <div class="layui-input-inline">
                <select name="parentId" id="parentId">
                    <option value="0" th:selected="${parentId}==0">【请选择上级菜单】</option>
                    <option th:each="item:${menuList}" th:value="${item.id}" th:text="${item.title}"  th:selected="${item.id == parentId}"></option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">URL地址：</label>
            <div class="layui-input-inline">
                <input name="url" id="url" th:value="${data['url']}?''" autocomplete="off" placeholder="请输入URL地址" class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">参数：</label>
            <div class="layui-input-inline">
                <input name="param" id="param" th:value="${data['param']}?''" autocomplete="off" placeholder="请输入参数" class="layui-input" type="text">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">权限标识：</label>
            <div class="layui-input-inline">
                <input name="auth" id="auth" th:value="${data['auth']}" autocomplete="off" placeholder="请输入权限标识" class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">序号：</label>
            <div class="layui-input-inline">
                <input name="sortOrder" id="sortOrder" th:value="${data['sortOrder']}" lay-verify="required|number" autocomplete="off" placeholder="请输入序号" class="layui-input" type="text">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">是否显示：</label>
            <div class="layui-input-inline">
                <input name="isShow" id="isShow" value="${data['isShow']}?0" checked lay-skin="switch" lay-filter="is_show" lay-text="是|否" type="checkbox">			</div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">公共菜单：</label>
            <div class="layui-input-inline">
                <input name="isPublic" id="isPublic" value="${data['isPublic']}?0"  lay-skin="switch" lay-filter="is_public" lay-text="是|否" type="checkbox">			</div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="submitForm" id="submitForm">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</div>
</html>